﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="BeiXun.Shared.UserControls.LeftNavBar"
    CodeFile="LeftNavBar.ascx.cs" %>
<div id="h2Div">
<div style="padding:10px;padding-left:40px;">
<asp:Label id="lblTitle" runat="server" ForeColor="white" Font-Bold="true" Font-Size="Larger"></asp:Label>
</div>
</div>

<asp:SiteMapDataSource ID="leftSitemap" runat="server" SiteMapProvider="Web" StartFromCurrentNode="True"  />
<script type="text/javascript">
function BingoWeb_LeftNav(id) {
    this.SelectedLevel1Item = null;
    this.Selectedlevel2item = null;
}

BingoWeb_LeftNav.prototype.setSelectedLevel1Item = function(item) {
    this.SelectedLevel1Item = item;
};

BingoWeb_LeftNav.prototype.getSelectedLevel1Item = function() {
    return this.SelectedLevel1Item;
};

BingoWeb_LeftNav.prototype.setSelectedLevel2Item = function(item) {
    this.SelectedLevel2Item = item;
};

BingoWeb_LeftNav.prototype.getSelectedLevel2Item = function() {
    return this.SelectedLevel2Item;
};

function leftnav_level1_onclick(obj, evt) {
    var img = UIHelper.findLower(obj, 10, "obj.tagName=='IMG'");
    UIHelper.changeImg(img, img.getAttribute("src_c"), img.getAttribute("src_o"));

    var ul = obj.nextSibling;
    if (!ul) return;
    while (ul && ul.nodeType == 3) ul = ul.nextSibling;
    UIHelper.showHide(ul);
}

function leftnav_set_topnav_selected(topnavId) {
    var objNode = document.getElementById(topnavId);
    if (objNode) objNode.className = objNode.getAttribute('_nvs');
}
</script>
